#include <iostream>

int main() {
    int N,a,b,c;
    scanf("%d",&N);
    a=N/3600;
    b=(N/3600)/60;
    c=(N/3600)%60;
    printf("%d hours : %d minutes : %d seconds",a,b,c);
    return 0;
}
